//登录接口需要携带的参数
export interface loginFormData {
  username: string
  password: string
}
interface dataType {
  token?: string
  message?: string
}
//登录接口返回的数据类型
export interface loginResponseData {
  code: number
  data: dataType
}
interface user {
  checkUser: {
    userId: number
    avatar: string
    username: string
    password: string
    desc: string
    roles: string[]
    buttons: string[]
    routers: string[]
    token: string
  }
}
//定义服务器返回用户情数据类型
export interface userInfoReponseData {
  code: number
  data: user
}
